<template>
  <div v-show="alert_show" class="alert_model" v-bind:style="{top:paddingtops+'px'}">

    <div class="models">
      <i class="iconfont icon-warnfill"></i>
      <span>{{alert_text}}</span>
    </div>
  </div>
</template>
<style>

</style>
<script>

  export default{
    props: ['alert_show', 'alert_text'],
    data(){
      return {
        msg: 'hello vue',
        paddingtops:''
      }
    },
    components: {},
    created:function(){
      let win_height = $(window).innerHeight();
      this.paddingtops = (win_height-100)/2
    },
  }
</script>
